import axios from 'axios';
import { loginreq, req } from './axiosFun';

/**
 * 项目管理
 **/
// 获取项目
export const List = (page, pagesize) => { return req("get", "/api/item/?page=" + page + "&pagesize=" + pagesize) };
// 删除项目
export const Delete = (id) => { return req("post", "/api/item/delete", { id: id }) };
// 添加项目
export const Add = (form) => { return req("post", "/api/item/add", JSON.stringify(form)) };
// 更新项目
export const Update = (form) => { return req("post", "/api/item/update", JSON.stringify(form)) };
// 项目映射
export const Options = () => { return req("get", "/api/item/options") }